/*
5. ±à³ÌÌâ
Ê¹ÓÃË«ÖØÑ­»·ÊµÏÖÎå×ÓÆåÓÎÏ·ÆåÅÌµÄ»æÖÆ£¬ ÆåÅÌ½çÃæµÄ¾ßÌåÐ§¹ûÈçÏÂ£º 
*/


import java.util.Arrays;
public class Homework5 {

	public static void main(String[] args) {

		//定义棋盘二维数组
		char[][] chess = new char[17][17];

		//char[][] column = new char[16][1];

		//临时数组存放列与行号码
		char[] row = {' ','0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f'};

		//遍历棋盘插入数据
		for (int i = 0 ; i < chess.length ; i++) {

			for (int j = 0 ; j < chess[i].length ; j++) {

				//当二维数组到达第一列时，将临时数列的数据插入第一列
				if (j == 0) {

					chess[i][j] = row[i];
				
				//当二维数组到达第一行时，将临时数列的数据插入第一行	
				} else if(i == 0)  {

					chess[i][j] = row[j];

				//其余情况插入+字符
				} else {

					chess[i][j] = '+';

				}
				
			}
	
		}


		for (int i = 0 ; i < chess.length ; i++) {

			for (int j = 0 ; j < chess[i].length ; j++) {

				System.out.print(chess[i][j] + " ");
			}
			System.out.println();
		}
/*
		for (int i = 0 ; i < column.length ; i++) {

			for (int j = 0 ; j < column[i].length ; j++) {

				column[i][j] = row[i];
			}
	
		}		


		for (int i = 0 ; i < column.length ; i++) {

			for (int j = 0 ; j < column[i].length ; j++) {

				System.out.print(column[i][j] + " ");
			}
			System.out.println();
		}
*/




	}
}